﻿using System;
using HAVNet.Core;


namespace HAVNet.Intros.AST
{
    public class ASTEmbStmtYield : ASTEmbStmt
    {
        public ASTExpr expression { get; set; }

        public override string ToString ()
        {
            if (expression == null)
                return "yield break;";
            else
                return "yield return " + expression.ToString() + ";";
        }
    }
}
